package com.example.project_01.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.project_01.pojo.basePojo.BasePojo;
import com.example.project_01.pojo.basePojo.SuperPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("drug")
@Schema(title = "药品实体类")
public class Drug extends SuperPojo implements Serializable {
    @Schema(title = "药品id")
    private Integer drugId;   //药品id
    @Schema(title = "药名")
    private String drugName;   //药名
    @Schema(title = "药品成分信息")
    private String drugInfo;    //药品成分信息
    @Schema(title = "药品功能作用")
    private String drugEffect;   //药品功能作用
    @Schema(title = "药品图片url")
    private String drugImg;    //药品图片url
    @TableField("createtime")
    private Date createTime;   //药品创建时间
    @TableField("updatetime")
    private Date updateTime;    //药品更新时间
    @Schema(title = "药品发布者")
    private String drugPublisher;    //药品发布者

}
